package com.sunfeng.elasticsearch.document.mapping;

import org.apache.http.HttpHost;
import org.elasticsearch.client.RestClient;
import org.elasticsearch.client.RestHighLevelClient;

import java.io.IOException;

/**
 * @Author : 孙峰
 * @Description:
 * @Date : 2022/4/22  17:58
 */
public class ESTest_Doc_Mapping_Test_One {
    private static RestHighLevelClient client;

    static {
        client = new RestHighLevelClient(
                RestClient.builder(new HttpHost("192.168.139.187", 9200, "http"))
        );
    }


    public static void main(String[] args) throws IOException {

        // aggregationsTest(client);
        client.close();
    }
}
